﻿using UnityEngine;
using System.Collections;

public class Home_UI : MonoBehaviour {

	public GameObject cerkle;
	public GameObject[] buttons;
	public GameObject[] allbuttons;
	Huge_UI kill;


	// Use this for initialization
	void Awake() 
	{
		kill = GameObject.Find ("Huge_collider").GetComponent<Huge_UI> ();

	}
	
	// Update is called once per frame
	void Update () 
	{
	
	}

	void OnMouseDown()
	{
		kill.killThemAll ();

		//gameObject.transform.localScale = new Vector3(0.95f * x , 0.9f * y, 1); //4.7,4.5,1
		cerkle.gameObject.GetComponent<Animator> ().SetBool ("intro", true);

		foreach (GameObject button in buttons) 
		{
			button.gameObject.GetComponent<Animator> ().SetBool ("intro", true);
		}
	}

}
